﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tierless.Framework.Server.Data
{
	/// <summary>
	/// Enumerates the possible events that can be fired for an entity.
	/// </summary>
	public enum EntityEvent 
	{ 
		/// <summary>
		/// Occurs after an entity is selected.
		/// </summary>
		AfterSelect, 
		
		/// <summary>
		/// Occurs before an entity is inserted.
		/// </summary>
		BeforeInsert, 

		/// <summary>
		/// Occurs after an entity is inserted.
		/// </summary>
		AfterInsert, 

		/// <summary>
		/// Occurs before an entity is updated.
		/// </summary>
		BeforeUpdate, 

		/// <summary>
		/// Occurs after an entity is updated.
		/// </summary>
		AfterUpdate, 

		/// <summary>
		/// Occurs before an entity is deleted.
		/// </summary>
		BeforeDelete, 

		/// <summary>
		/// Occurs after an entity is deleted.
		/// </summary>
		AfterDelete 
	}
}
